package com.ls.task.support.schedule.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;

import com.ls.fw.data.annotation.FwColumn;

public class TaskTrigger implements Serializable {

	private String id;

	/**
	 * 优先级
	 */
	@FwColumn(name = "level", remark = "优先级")
	private Integer level;
	/**
	 * 名称
	 */
	@FwColumn(name = "name", remark = "名称")
	private String name;

	/**
	 * 任务运行时间表达式
	 */
	@FwColumn(name = "expression", remark = "任务运行时间表达式")
	private String expression;

	/**
	 * 任务分组
	 */
	@FwColumn(name = "group", remark = "任务分组")
	private String group;

	/**
	 * 描述
	 */
	@FwColumn(name = "description", remark = "描述")
	private String description;

	/**
	 * 启动时间
	 */
	@Column(name = "start_dt")
	@FwColumn(name = "start_dt", remark = "启动时间")
	private Date startDt;

	/**
	 * 停止时间
	 */
	@Column(name = "end_dt")
	@FwColumn(name = "end_dt", remark = "停止时间")
	private Date endDt;

	/**
	 * 实际执行时间
	 */
	@Column(name = "do_dt")
	@FwColumn(name = "do_dt", remark = "实际执行时间")
	private Date doDt;

	/**
	 * 前一次实际执行时间
	 */
	@Column(name = "previous_dt")
	@FwColumn(name = "previous_dt", remark = "前一次实际执行时间")
	private Date previousDt;

	/**
	 * 下一次该执行时间
	 */
	@Column(name = "next_dt")
	@FwColumn(name = "next_dt", remark = "下一次该执行时间")
	private Date nextDt;

	/**
	 * 状态code
	 */
	@Column(name = "status_code")
	@FwColumn(name = "status_code", remark = "状态code")
	private String statusCode;

	/**
	 * 状态
	 */
	@Column(name = "status_name")
	@FwColumn(name = "status_name", remark = "状态")
	private String statusName;

	/**
	 * 是否同步
	 */
	@FwColumn(name = "concurrent", remark = "是否同步")
	private Boolean concurrent;

	/**
	 * 类别
	 */
	@Column(name = "category_code")
	@FwColumn(name = "category_code", remark = "类别")
	private String categoryCode;

	private Long period;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getExpression() {
		return expression;
	}

	public void setExpression(String expression) {
		this.expression = expression;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}

	public Date getDoDt() {
		return doDt;
	}

	public void setDoDt(Date doDt) {
		this.doDt = doDt;
	}

	public Date getPreviousDt() {
		return previousDt;
	}

	public void setPreviousDt(Date previousDt) {
		this.previousDt = previousDt;
	}

	public Date getNextDt() {
		return nextDt;
	}

	public void setNextDt(Date nextDt) {
		this.nextDt = nextDt;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public Boolean getConcurrent() {
		return concurrent;
	}

	public void setConcurrent(Boolean concurrent) {
		this.concurrent = concurrent;
	}

	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Long getPeriod() {
		return period;
	}

	public void setPeriod(Long period) {
		this.period = period;
	}

}